package org.dromara.bclt.domain.bo;

import org.dromara.bclt.domain.Course;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 手环--课程业务对象 bclt_course
 *
 * @author RRyuan
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Course.class, reverseConvertGenerate = false)
public class CourseBo extends BaseEntity {



    /**
     * 课程id
     */
    @NotNull(message = "课程id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 课程名称
     */
    @NotBlank(message = "课程名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 课程封面
     */
//    @NotBlank(message = "课程封面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 课程类型
     */
    @NotBlank(message = "课程类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bcltCourseType;

    /**
     * 课程url
     */
    @NotBlank(message = "课程url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 课程总时长
     */
    @NotNull(message = "课程总时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalTime;

    /**
     * 课程排序
     */
//    @NotBlank(message = "课程排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long courseOrder;

    /**
     * 课程备注
     */
//    @NotBlank(message = "课程备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 标识app请求 1表示app
     */
    private Long client;

    /**
     * 设备编号
     */
    private String deviceNumber;

    /**
     * 设备ID
     */
    private Long deviceId;

}
